import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/bind_account_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/bind_account_entity.g.dart';

@JsonSerializable()
class BindAccountEntity {
	late int code;
	late String msg;
	 List<BindAccountData> data = [];

	BindAccountEntity();

	factory BindAccountEntity.fromJson(Map<String, dynamic> json) => $BindAccountEntityFromJson(json);

	Map<String, dynamic> toJson() => $BindAccountEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class BindAccountData {
	late int id;
	late String telphone;
	late String nickname;
	@JSONField(name: "binding_type")
	late String bindingType;
	@JSONField(name: "user_id")
	late int userId;
	@JSONField(name: "open_id")
	late String openId;
	@JSONField(name: "bank_card")
	late String bankCard;
	@JSONField(name: "zfb_num")
	late String zfbNum;

	BindAccountData();

	factory BindAccountData.fromJson(Map<String, dynamic> json) => $BindAccountDataFromJson(json);

	Map<String, dynamic> toJson() => $BindAccountDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}